Page({
  hanldGetUserInfo(e){
    let {userInfo} = e.detail
    wx.setStorageSync('userinfo',userInfo )
    wx.showToast({
      title: '登录成功',
    })
    setTimeout(()=>{
      wx.switchTab({
        url: '/pages/user/user',
      })
    },2000)
  }
})